﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DentScan2.WebApp.Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/UC/ucVehicles.ascx" TagPrefix="uc1" TagName="ucVehicles" %>
<%@ Register Src="~/UC/ucRegional.ascx" TagPrefix="uc1" TagName="ucRegional" %>
<%@ Register Src="~/UC/ucDDL.ascx" TagPrefix="uc1" TagName="ucDDL" %>




<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel runat="server" ID="upAutoSave">
        <ContentTemplate>
            <asp:Timer runat="server" ID="tAutoSave" Enabled="true" Interval="30000" OnTick="tAutoSave_Tick" />
        </ContentTemplate>
    </asp:UpdatePanel>

    <asp:ValidationSummary ID="vsMain" runat="server" ValidationGroup="vg" CssClass="failureNotification" />
    <table border="1" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td valign="top">
                <!-- KOLONA 1-->
                <table border="1" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <p class="lbl">Метод на изчисление</p>
                        </td>
                        <td>
                            <h2>
                                <asp:Label runat="server" ID="lMethodName" />
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">Експертиза номер</p>
                        </td>
                        <td>
                            <h2>
                                <asp:Label runat="server" ID="lDamageIdentifier" />
                            </h2>
                        </td>
                    </tr>
                    <tr>

                        <td>
                            <p class="lbl">Дата на инцидента</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbDamageDate" ReadOnly="false" CssClass="input100Req"><%--01.01.2003--%></asp:TextBox><asp:Button ID="bDamageDate" runat="server" Text=".." />
                            <asp:CalendarExtender ID="ceDamageDate" runat="server" TargetControlID="tbDamageDate" PopupButtonID="bDamageDate"
                                DaysModeTitleFormat="dd.MM.yyyy" FirstDayOfWeek="Monday" Format="dd.MM.yyyy"
                                TodaysDateFormat="dd.MM.yyyy" />
                            <asp:RequiredFieldValidator ID="rfvDamageDate" runat="server" ErrorMessage="Моля, въведете дата на инцидента" ControlToValidate="tbDamageDate" ValidationGroup="vg" Display="None"></asp:RequiredFieldValidator>
                            <asp:CustomValidator ID="cvDamageDate" runat="server" ErrorMessage="Моля, въведете коректна дата на инцидента" ControlToValidate="tbDamageDate" ValidationGroup="vg" Display="None" OnServerValidate="cvDamageDate_ServerValidate"></asp:CustomValidator>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <h2>Собственик / Фирма*
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 50%;">
                            <p class="lbl">Собственик/Фирма</p>
                        </td>
                        <td style="width: 50%;">
                            <asp:TextBox runat="server" ID="tbName" CssClass="input100Req"><%--Александър Константинов--%></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="Моля, въведете име на собственик" ControlToValidate="tbName" ValidationGroup="vg" Display="None"></asp:RequiredFieldValidator>

                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">Адрес, улица номер</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbAddress" CssClass="input100Req"><%--Цанко Церковски 1--%></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvAddress" runat="server" ErrorMessage="Моля, въведете адрес" ControlToValidate="tbAddress" ValidationGroup="vg" Display="None"></asp:RequiredFieldValidator>

                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">ЕИК/ЕГН</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbIdentifier" CssClass="input100Req"><%--7709146247--%></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvIdentifier" runat="server" ErrorMessage="Моля, въведете ЕИК/ЕГН" ControlToValidate="tbIdentifier" ValidationGroup="vg" Display="None"></asp:RequiredFieldValidator>
                            <asp:CustomValidator runat="server" ID="cvRegional" ValidateEmptyText="true" ErrorMessage="Моля, изберете Град/Село" ControlToValidate="tbIdentifier" ValidationGroup="vg" Display="None" OnServerValidate="cvRegional_ServerValidate" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <uc1:ucRegional runat="server" ID="ucRegional" CanInsert="true" AddNull="false" MandatoryFields="true" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">Лице за контакт</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbContactPerson" CssClass="input100Req"><%--Александър Константинов--%></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvContactPerson" runat="server" ErrorMessage="Моля, въведете Лице за контакт" ControlToValidate="tbContactPerson" ValidationGroup="vg" Display="None"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">Мобилен телефон</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbContactPhone" CssClass="input100Req"><%--8665910--%></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvContactPhone" runat="server" ErrorMessage="Моля, въведете мобилен телефон" ControlToValidate="tbContactPhone" ValidationGroup="vg" Display="None"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">Телефон</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbPhones" CssClass="input100"><%--Телефон--%></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">МОЛ</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbMOL" CssClass="input100"><%--МОЛ--%></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">Дейност</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbActivity" CssClass="input100"><%--Дейност--%></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">Пощенски код</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbPK" CssClass="input100"><%--Пощенски код--%></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">Факс</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbFaxes" CssClass="input100"><%--Факс--%></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">Имейл</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbEmails" CssClass="input100NoCapsLock"><%--Имейл--%></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
            <td valign="top">
                <!-- KOLONA 2-->
                <table border="1" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td colspan="2">
                            <h2>МПС
                            </h2>
                        </td>
                    </tr>
                    <tr>

                        <td colspan="2">
                            <uc1:ucVehicles ID="ucVehicles" runat="server" CanInsert="true" AddNull="false" />
                        </td>
                    </tr>
                    <tr>


                        <td>
                            <p class="lbl">Рег. номер(САМО ГЛАВНИ БУКВИ)</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbRegNumber" CssClass="input100Req"><%--СА8716НК--%></asp:TextBox>
                            <asp:CustomValidator runat="server" ID="cvVehicles" ValidateEmptyText="true" ErrorMessage="Моля, изберете марка и модел" ControlToValidate="tbRegNumber" ValidationGroup="vg" Display="None" OnServerValidate="cvVehicles_ServerValidate" />
                            <asp:CustomValidator runat="server" ID="cvInsurer" ValidateEmptyText="true" ErrorMessage="Моля, изберете застраховател" ControlToValidate="tbRegNumber" ValidationGroup="vg" Display="None" OnServerValidate="cvInsurer_ServerValidate" />
                            <asp:RequiredFieldValidator ID="rfvRegNumber" runat="server" ErrorMessage="Моля, въведете Рег. номер" ControlToValidate="tbRegNumber" ValidationGroup="vg" Display="None"></asp:RequiredFieldValidator>
                            <asp:FilteredTextBoxExtender ID="fteRegNumber" runat="server" TargetControlID="tbRegNumber" FilterMode="ValidChars" ValidChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"></asp:FilteredTextBoxExtender>
                        </td>
                    </tr>
                    <tr>

                        <td>
                            <p class="lbl">Рама</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbChassisNumber" CssClass="input100"><%--2222222--%></asp:TextBox>
                            <%--<asp:RequiredFieldValidator ID="rfvChassisNumber" runat="server" ErrorMessage="Моля, въведете Рама" ControlToValidate="tbChassisNumber" ValidationGroup="vg" Display="None"></asp:RequiredFieldValidator>--%>

                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">Категория</p>
                        </td>
                        <td>
                            <uc1:ucDDL runat="server" ID="UcCarTypeDDL" CanInsert="true" Classificator="CarTypes" />
                        </td>
                    </tr>
                    <tr>


                        <td>
                            <p class="lbl">Година на производство</p>
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlProductionYear" />

                        </td>
                    </tr>
                    <tr>


                        <td>
                            <p class="lbl">Километри</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbKilometers" CssClass="input100"><%--100--%></asp:TextBox>
                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="tbKilometers"
                                FilterType="Numbers" />
                        </td>
                    </tr>
                    <tr>

                        <td>
                            <p class="lbl">Цвят</p>
                        </td>
                        <td>
                            <uc1:ucDDL runat="server" ID="UcColorDDL" CanInsert="true" AddNull="false" Classificator="Colors" />
                        </td>
                    </tr>
                    <tr>

                        <td>
                            <p class="lbl">Боя</p>
                        </td>
                        <td>
                            <uc1:ucDDL runat="server" ID="UcPaintDDL" CanInsert="true" AddNull="false" Classificator="Paints" />
                        </td>
                    </tr>
                    <tr>

                        <td>
                            <p class="lbl">Врати</p>
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlDoors" />

                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <h2>Данни за застраховка
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p class="lbl">Застраховател</p>
                        </td>
                        <td>
                            <uc1:ucDDL runat="server" ID="ucInsDDL" CanInsert="true" AddNull="false" Classificator="Insurers" />
                        </td>
                    </tr>
                    <tr>

                        <td>
                            <p class="lbl">Оценително дружество</p>
                        </td>
                        <td>
                            <uc1:ucDDL runat="server" ID="UcEvaluatorDDL" CanInsert="true" AddNull="false" Classificator="Evaluators" />
                        </td>
                    </tr>
                    <tr>

                        <td>
                            <p class="lbl">Име на оценител</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbEvaluatorName" CssClass="input100"><%--Име на оценител--%></asp:TextBox>
                        </td>
                    </tr>
                    <tr>

                        <td>
                            <p class="lbl">Номер на полица</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbDocumentNumber" CssClass="input100"><%--Номер на полица--%></asp:TextBox>
                        </td>
                    </tr>
                    <tr>

                        <td>
                            <p class="lbl">Номер на щета</p>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="tbDamageCode" CssClass="input100"><%--22222--%></asp:TextBox>

                        </td>
                    </tr>

                    <tr>

                        <td>
                            <asp:Button runat="server" ID="bNext" Text=">>" OnClick="bNext_Click" />
                        </td>

                    </tr>

                </table>
            </td>
        </tr>
    </table>
</asp:Content>
